import Vue from 'vue'
import vuex from 'vuex'
Vue.use(vuex);

export default new vuex.Store({
  state: {
    user: "",
    content: "",
    detail: ""
  },
  mutations: {
    login(state, user) {
      state.user = user
    },
    getContent(state, content) {
      state.content = content
    },
    getDetail(state, detail) {
      state.detail = detail
    }
  }
})
